// app/service/user.js
const Service = require('egg').Service;

class UserService extends Service {
  async list() {
    const user = await this.app.mysql.select('signin', {
        orders: [['date','desc']], // 排序方式
        limit: 2
    });
    return user
  }
}

module.exports = UserService;